﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tum.CollabXT
{
    /// <summary>
    /// This interface represents transitions in a workflow. It realizes 1:1 connections between workflow activities <see cref="IWorkflowActivity"/>.
    /// 1:N connections have to be realized using multiple instances of implementations of this interface, referring the same source activity.
    /// </summary>
    public interface IWorkflowTransition : IDynamicProcessElement
    {
        /// <summary>
        /// Gets or sets the transition's source activity.
        /// </summary>
        IWorkflowActivity SourceActivity
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the transition's target activity.
        /// </summary>
        IWorkflowActivity TargetActivity
        {
            get;
            set;
        }
    }
}
